String['prototype']['GetValue'] = function (_0xceffx1) {
    var _0xceffx2 = new RegExp('(^|&)' + _0xceffx1 + '=([^&]*)(&|$)');
    var _0xceffx3 = this['substr'](this['indexOf']('?') + 1)['match'](_0xceffx2);
    if (_0xceffx3 != null) {
        return unescape(_0xceffx3[2]);
    };
    return null;
};
var str = location['href'];
var page = str.GetValue('page');
var view = str.GetValue('v');
var homepageurl = 'http://freecodevnn.blogspot.com/';
var urllength = homepageurl['length'];
if (page == undefined) {
    page = '1';
};
if (view == undefined) {
    view = 'full';
};
if (str['indexOf']('search/label') != -1) {
    if (str['indexOf']('?') != -1) {
        var str1 = str['split']('?')[0];
        var label = str1['substring'](urllength + 13, str1['length']);
    } else {
        var label = str['substring'](urllength + 13, str['length']);
    };
    var textlabel = '/-/' + label;
    var textpage = 'search/label/' + label;
} else {
    var textlabel = '';
    var textpage = '';
};

function stripHtmlTags(_0xceffxe, _0xceffxf) {
    _0xceffxe = _0xceffxe['replace'](/<br.*?>/ig, ' ');
    return _0xceffxe['replace'](/<.*?>/ig, '')['split'](/\s+/)['slice'](0, _0xceffxf - 1)['join'](' ');
};

function removeHtmlTag(_0xceffx11, _0xceffx12) {
    var _0xceffxe = _0xceffx11['split']('<');
    for (var _0xceffx13 = 0; _0xceffx13 < _0xceffxe['length']; _0xceffx13++) {
        if (_0xceffxe[_0xceffx13]['indexOf']('>') != -1) {
            _0xceffxe[_0xceffx13] = _0xceffxe[_0xceffx13]['substring'](_0xceffxe[_0xceffx13]['indexOf']('>') + 1, _0xceffxe[_0xceffx13]['length']);
        };
    };
    _0xceffxe = _0xceffxe['join']('');
    _0xceffxe = _0xceffxe['substring'](0, _0xceffx12 - 1);
    return _0xceffxe;
};

function showrecentposts(_0xceffx15) {
    img = new Array();
    for (var _0xceffx13 = 0; _0xceffx13 < numposts; _0xceffx13++) {
        var _0xceffx16 = _0xceffx15['feed']['entry'][_0xceffx13];
        var _0xceffx17 = _0xceffx16['title']['$t'];
        var _0xceffx18;
        var _0xceffx19;
        if ('media$thumbnail' in _0xceffx16) {
            var _0xceffx1a = _0xceffx16['media$thumbnail']['url'];
        } else {
            var _0xceffx1a = 'http://lh6.googleusercontent.com/-8fE2X7kBhWs/Tf96WzivFHI/AAAAAAAAB0s/fItUKGW08gY/no-image.png';
        }; if (_0xceffx13 == _0xceffx15['feed']['entry']['length']) {
            break;
        };
        for (var _0xceffx1b = 0; _0xceffx1b < _0xceffx16['link']['length']; _0xceffx1b++) {
            if (_0xceffx16['link'][_0xceffx1b]['rel'] == 'alternate') {
                _0xceffx19 = _0xceffx16['link'][_0xceffx1b]['href'];
                break;
            };
        };
        if ('thr$total' in _0xceffx16) {
            _0xceffx18 = _0xceffx16['thr$total']['$t'];
            var _0xceffx1c = _0xceffx18;
        } else {
            _0xceffx18 = 'none';
            var _0xceffx1c = 'X';
        }; if (_0xceffx18 == 0) {
            var _0xceffx1d = 'Ch\u01B0a c\xF3 nh\u1EADn x\xE9t';
            var _0xceffx1e = '| <span style="color:#0082ff;"><i>Ch\u01B0a c\xF3 nh\u1EADn x\xE9t</i></span>';
        } else {
            if (_0xceffx18 == 'none') {
                var _0xceffx1d = '<span style="color:#f00;">Nh\u1EADn x\xE9t \u0111\xE3 t\u1EAFt</span>';
                var _0xceffx1e = '| <span style="color:#f00;"><i>Nh\u1EADn x\xE9t \u0111\xE3 t\u1EAFt</i></span>';
            } else {
                var _0xceffx1d = '<font style="color:#0082ff;">' + _0xceffx18 + '</font> Nh\u1EADn x\xE9t';
                var _0xceffx1e = '';
            };
        }; if (_0xceffx18 > 200) {
            var _0xceffx1f = new Array();
            var _0xceffx20 = new Array();
            var _0xceffx21 = _0xceffx18 / 200;
            var _0xceffx22 = _0xceffx18 % 200;
            if (_0xceffx22 == 0) {
                var _0xceffx23 = parseInt(_0xceffx21);
            } else {
                var _0xceffx23 = parseInt(_0xceffx21) + 1;
            };
            for (var _0xceffxe = 0; _0xceffxe < _0xceffx23; _0xceffxe++) {
                _0xceffx20[_0xceffxe] = _0xceffxe + 1;
                _0xceffx1f[_0xceffxe] = '<a href="' + _0xceffx19 + '?commentPage=' + _0xceffx20[_0xceffxe] + '">' + _0xceffx20[_0xceffxe] + '</a>';
            };
            var _0xceffx24 = '<span style="font-size:85%;color:#24BDE2;"> [<img src="http://lh4.googleusercontent.com/-2Ecsj_7_DfQ/TtDbLsddqGI/AAAAAAAACBw/3nFpHuHLbrk/s12/icon_cmpage.gif" />Comment page : ' + _0xceffx1f + ' ]</span><br/>';
        } else {
            var _0xceffx24 = '';
        };
        var _0xceffx25 = new Array();
        var _0xceffx26 = _0xceffx16['category'];
        if (_0xceffx26) {
            for (var _0xceffx1b = 0; _0xceffx1b < _0xceffx16['category']['length']; _0xceffx1b++) {
                _0xceffx25[_0xceffx1b] = ' <a class="label-link" href="/search/label/' + _0xceffx16['category'][_0xceffx1b]['term'] + '">' + _0xceffx16['category'][_0xceffx1b]['term'] + '</a> ';
            };
        } else {
            _0xceffx25 = 'No label';
        };
        var _0xceffx27 = _0xceffx16['author'][0]['name']['$t'];
        var _0xceffx28 = _0xceffx16['published']['$t'];
        var _0xceffx29 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
        var _0xceffx2a = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
        var _0xceffx2b = _0xceffx28['split']('-')[2]['substring'](0, 2);
        var _0xceffx2c = _0xceffx28['split']('-')[1];
        var _0xceffx2d = _0xceffx28['split']('-')[0];
        postDay = _0xceffx2b + '/' + _0xceffx2c + '/' + _0xceffx2d;
        if ('content' in _0xceffx16) {
            var _0xceffx2e = _0xceffx16['content']['$t'];
        } else {
            if ('summary' in _0xceffx16) {
                var _0xceffx2e = _0xceffx16['summary']['$t'];
            } else {
                _0xceffx2e = '';
            };
        };
        _0xceffxe = _0xceffx2e;
        a = _0xceffxe['indexOf']('<img');
        b = _0xceffxe['indexOf']('src="', a);
        c = _0xceffxe['indexOf']('"', b + 5);
        d = _0xceffxe['substr'](b + 5, c - b - 5);
        if ((a != -1) && (b != -1) && (c != -1) && (d != '')) {
            img[_0xceffx13] = d;
        } else {
            img[_0xceffx13] = 'http://lh3.ggpht.com/--Z8SVBQZ4X8/TdDxPVMl_sI/AAAAAAAAAAA/jhAgjCpZtRQ/no-image.png';
        };
        var _0xceffx2f = '<div class="xpost2"><a href="' + _0xceffx19 + '"><img src="' + img[_0xceffx13] + '" /></a><h2><a href="' + _0xceffx19 + '">' + _0xceffx17 + '</a></h2><div class="clear"></div></div>';
        var _0xceffx30 = '<div class="xpost1"><a href="' + _0xceffx19 + '"><img src="' + img[_0xceffx13] + '" /></a><h2><a href="' + _0xceffx19 + '">' + _0xceffx17 + '</a></h2><p class="xinfo1">' + removeHtmlTag(_0xceffx2e, 130) + ' ...</p></div><div class="clear"></div>';
        if (view == 'full') {
            if ((_0xceffx13 == 0) && (page == 1) && (textpage == '')) {
                document['write'](_0xceffx2f);
            } else {
                if (label == 'TOUR') {
                    document['write'](_0xceffx30);
                } else {
                    document['write'](_0xceffx2f);
                };
            };
        } else {
            document['write'](_0xceffx30);
        };
    };
};

function numberOfPosts(_0xceffx15) {
    document['write']('<script style="text/javascript">var totalPosts= ' + _0xceffx15['feed']['openSearch$totalResults']['$t'] + ' ;</script>');
};
document['write']('<script src="/feeds/posts/default' + textlabel + '?alt=json-in-script&callback=numberOfPosts"></script>');